home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _ABEF41C9E5A14B8AA2B02EEF522DE70B < prev    next >
Encoding:
Text File  |  2004-01-06  |  665 b   |  36 lines

  1. // ===============================================================
  2. // Vertex Program: color contrast
  3. // Description: used in color contrast post-processing fx
  4. // Last Update: 02/06/2003
  5. // Coder: Tiago Sousa
  6. // ===============================================================
  7.  
  8. #include "../CGVPMacro.csi"
  9.  
  10.  
  11. // setup vertex components
  12. MainInput
  13. {
  14.   // common model view matrix
  15.   VIEWPROJ_MATRIX
  16.  
  17. }
  18.  
  19. DeclarationsScript
  20. {
  21.   // vertex input
  22.   IN_T0
  23.   // vertex output
  24.   OUT_T0
  25. }
  26.  
  27. // output vertex position
  28. PositionScript = PosCommon
  29.  
  30. CoreScript
  31. {  
  32.   // output texture coordinates  
  33.   OUT.Tex0.xy = IN.TexCoord0.xy;
  34.   
  35.   return OUT;
  36. }